package com.pingan.haofang.searchcloud.web.index.form;

import com.pingan.haofang.searchcloud.common.form.PageForm;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 索引列表
 *
 * @author baojie371
 * @date 17/5/3
 * @since 1.0.0
 */
public class IndexQueryForm extends PageForm {

    @NotNull(message = "project.id.illegal")
    @Min(value = 1, message = "project.id.illegal")
    @ApiModelProperty(value = "项目ID", allowableValues = "range[1,infinity]", required = true)
    private Long projectId;

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }
}
